package se.hiq.winedb.datamodel;

public class Wine {
	
	public enum WineColor {
		RED,
		WHITE,
		ROSE
	}
	
	private Long primaryKey;
	private String name;
	private int year;
	private float alc;
	private WineColor color;
	private String description;
	private Grape[] grapes;
	
	public Wine(Long primaryKey, String name, int year, float alc, WineColor color, String description, Grape... grapes) {
		this.primaryKey = primaryKey;
		this.name = name;
		this.year = year;
		this.alc = alc;
		this.color = color;
		this.grapes = grapes;
		this.description = description;
	}		
	
	public Long getPrimaryKey() {
		return primaryKey;
	}
	public void setPrimaryKey(Long primaryKey) {
		this.primaryKey = primaryKey;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getYear() {
		return year;
	}
	public void setYear(int year) {
		this.year = year;
	}
	public float getAlc() {
		return alc;
	}
	public void setAlc(float alc) {
		this.alc = alc;
	}
	public WineColor getColor() {
		return color;
	}
	public void setColor(WineColor color) {
		this.color = color;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Grape[] getGrapes() {
		return grapes;
	}
	public void setGrapes(Grape[] grapes) {
		this.grapes = grapes;
	}
	
}
